package com.ruoyi.yijing.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 书本章节对象 yj_book_chapter
 * 
 * @author ruoyi
 * @date 2024-01-22
 */
public class YjBookChapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long chapterId;

    /** 书ID */
    @Excel(name = "书ID")
    private Long bookId;

    /** 章节标题 */
    @Excel(name = "章节标题")
    private String chapterName;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 数据状态(1有效，0无效) */
    @Excel(name = "数据状态(1有效，0无效)")
    private String dataStatus;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setChapterName(String chapterName) 
    {
        this.chapterName = chapterName;
    }

    public String getChapterName() 
    {
        return chapterName;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setDataStatus(String dataStatus) 
    {
        this.dataStatus = dataStatus;
    }

    public String getDataStatus() 
    {
        return dataStatus;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chapterId", getChapterId())
            .append("bookId", getBookId())
            .append("chapterName", getChapterName())
            .append("sort", getSort())
            .append("dataStatus", getDataStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("content", getContent())
            .toString();
    }
}
